package com.garbagecode.routetable.path;

public class Segment {
  private String name;
  private byte type = TYPE_STATIC;
  public static final byte TYPE_PARAMETER = 1; // 路径参数
  public static final byte TYPE_STATIC = 2; // 静态路径

  public Segment(String name, byte type) {
    this.name = name;
    this.type = type;
  }

  public String getName() {
    return name;
  }

  public byte getType() {
    return type;
  }

}
